﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebsocketApp
{
    public class MessageHelper
    {
        public static Dictionary<string, int> MsgIds = new Dictionary<string, int>
        {
            {"Navigation", 202 },
            {"HearBeat", 203 },
            {"TaskFinish", 205 },
            {"GoCharging", 206 },
            {"EnterCar", 207 },
            {"ReturnFromCar", 208 },
            {"RaiseCar", 209 },
            {"DropCar", 210 }
        };
    }
    public class NavigationTaskItem
    {
        public double x { get; set; }
        public double y { get; set; }
        public double distance { get; set; }
        public int goTh { get; set; }
        public int bodyTh { get; set; }
    }

    public class BaseJson
    {
        public int msgId { get; set; }
    }

    public class GoJson
    {
        public string clientId { get; set; }
        public int msgId { get; set; }
        public List<NavigationTaskItem> navigationTask { get; set; }
    }
}
